33 StateAngle(
double _angle,
bool _fixed =
false,
bool _transformable =
true);
37 StateAngle(
const Eigen::VectorXd& _angle,
bool _fixed =
false,
bool _transformable =
true);
59 if (_angle.size() != 1)
throw std::runtime_error(
"The angle state vector must be of size 1!");
66 return Eigen::VectorXd::Zero(1);
Local parametrization of an angle: increments are added and the result wrapped to [-pi,...
Definition: local_parametrization_angle.h:29
State block of an angle (2D orientation), wrapped to [-pi, pi].
Definition: state_angle.h:29
~StateAngle() override
Definition: state_angle.h:69
static Eigen::VectorXd Identity()
Returns the identity element (zero angle)
Definition: state_angle.h:64
StateAngle(double _angle, bool _fixed=false, bool _transformable=true)
Constructor from an angle.
Definition: state_angle.h:50
WOLF_STATE_BLOCK_CREATE(StateAngle)
virtual void transform(const VectorComposite &_transformation) override
Transforms the state to another reference frame (if transformable)
Definition: state_angle.h:74
State block: a state vector of a variable of the nonlinear optimization.
Definition: state_block.h:73
bool isTransformable() const
Returns whether the state block can be transformed to another reference frame.
Definition: state_block.h:235
void setState(const Eigen::VectorXd &_state, const bool _notify=true)
Sets the state vector.
Definition: state_block.cpp:25
Eigen::VectorXd getState() const
Returns the state vector.
Definition: state_block.h:322
Eigen::VectorXd state_
State vector storing the state values.
Definition: state_block.h:80
Composite of state vectors.
Definition: vector_composite.h:29
Definition: capture_base.h:23
T pi2pi(const T &_angle)
Returns the angle wrapped to [-pi, pi].
Definition: rotations.h:33